package com.ruoyi.admin.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户订阅对象 zhx_subscribe
 * 
 * @author ruoyi
 * @date 2024-11-11
 */
public class ZhxSubscribe extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long subscribeId;

    /** 订阅类型（1书籍 2接龙） */
    @Excel(name = "订阅类型", readConverterExp = "1书籍,2接龙")
    private String subscribeType;

    /** 书籍id */
    @Excel(name = "书籍id")
    private Long bookId;

    /** 接龙id */
    @Excel(name = "接龙id")
    private Long jielongId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 新增数量（默认0） */
    @Excel(name = "新增数量", readConverterExp = "默认0")
    private Long newQuantity;

    /** 订阅信息对象 */
    private Object subscribeObject;

    public Object getSubscribeObject() {
        return subscribeObject;
    }

    public void setSubscribeObject(Object subscribeObject) {
        this.subscribeObject = subscribeObject;
    }

    public void setSubscribeId(Long subscribeId) 
    {
        this.subscribeId = subscribeId;
    }

    public Long getSubscribeId() 
    {
        return subscribeId;
    }
    public void setSubscribeType(String subscribeType) 
    {
        this.subscribeType = subscribeType;
    }

    public String getSubscribeType() 
    {
        return subscribeType;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setJielongId(Long jielongId) 
    {
        this.jielongId = jielongId;
    }

    public Long getJielongId() 
    {
        return jielongId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setNewQuantity(Long newQuantity) 
    {
        this.newQuantity = newQuantity;
    }

    public Long getNewQuantity() 
    {
        return newQuantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("subscribeId", getSubscribeId())
            .append("subscribeType", getSubscribeType())
            .append("bookId", getBookId())
            .append("jielongId", getJielongId())
            .append("userId", getUserId())
            .append("newQuantity", getNewQuantity())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
